package com.caxxb.entity;

public class ShoppingCart {
   private int cart_id;
   private int game_id;
   private int user_id;
   private double price;

   private Game game=new Game();

    public String getGame_name() {
        return game.getGame_name();
    }

    public void setGame_name(String game_name) {
        game.setGame_name(game_name);
    }

    public String getGame_img() {
        return game.getGame_img();
    }

    public void setGame_img(String game_img) {
        game.setGame_img(game_img);
    }

    public ShoppingCart(int cart_id, int game_id, int user_id, double price, Game game) {
        this.cart_id = cart_id;
        this.game_id = game_id;
        this.user_id = user_id;
        this.price = price;
        this.game = game;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "cart_id=" + cart_id +
                ", game_id=" + game_id +
                ", user_id=" + user_id +
                ", price=" + price +
                ", game=" + game +
                '}';
    }

    public ShoppingCart() {
    }

    public ShoppingCart(int cart_id, int game_id, int user_id, double price) {
        this.cart_id = cart_id;
        this.game_id = game_id;
        this.user_id = user_id;
        this.price = price;
    }

    public int getCart_id() {
        return cart_id;
    }

    public void setCart_id(int cart_id) {
        this.cart_id = cart_id;
    }

    public int getGame_id() {
        return game_id;
    }

    public void setGame_id(int game_id) {
        this.game_id = game_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

}
